import { nanoid } from "nanoid";
export const Nanoid=()=>{
    if(localStorage.getItem('NANOIDTOKEN')){
        return localStorage.getItem('NANOIDTOKEN')
    }else{
        const nanoid_token=nanoid()
        localStorage.setItem('NANOIDTOKEN',nanoid_token)
        return nanoid_token
    }
}